﻿using System.Data.Entity;
using ClubManager.Models;
using ClubManager.Models.Location;

namespace ClubManager.DAL
{
    public class ClubDb : DbContext
    {
        public DbSet<Club> Clubs { get; set; }
        public DbSet<State> States { get; set; }
        public DbSet<Season> Seasons { get; set; }
        public DbSet<ClubTeam> ClubTeams { get; set; }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //modelBuilder.Entity<ClubTeam>().HasRequired(u => new
            //{
            //    //u.Season,
            //    u.Gender,
            //    u.AgeGroup
            //});

        }
    }
}